package com.gopay.common.domain.holiday;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;

@Entity
@Table(name = "HOLIDAY_INFORMATION")
public class HolidayInformation extends BaseEntity {

    private static final long serialVersionUID = -2323400448775539839L;

    @Id
    @Column(name = "SQ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "HOLIDAY_INFORMATION_SEQ")
    @SequenceGenerator(name = "HOLIDAY_INFORMATION_SEQ", allocationSize = 1, initialValue = 1, sequenceName = "HOLIDAY_INFORMATION_SEQ")
    private Long sq;
    
    @Column(name = "HOLIDAY_TYPE", nullable = false, length = 2)
    private String holidayType;
    
    @Column(name = "YEAR", nullable = false, length = 4)
    private String year;
    
    @Column(name = "MONTH", nullable = false, length = 2)
    private String month;

    @Column(name = "HOLIDAYS", length = 100)
    private String holidays;
    
    @Column(name = "IS_ADJUST")
    private int isAdjust;
    
    @Column(name = "REMARKS", length = 2000)
    private String remarks;
    /**
     * 创建时间
     */
    @Column(name = "CREATED_TS", nullable = false)
    private Date createTime;

    /**
     * 最后更新时间
     */
    @Column(name = "LAST_UPD_TS", nullable = false)
    private Date lastUpdTime;

    /**
     * 最后修改交易码
     */
    @Column(name = "LAST_UPD_TRANCODE", nullable = true, length = 10)
    private String lastUpdTranCode;

    public Long getSq() {
        return sq;
    }

    public void setSq(Long sq) {
        this.sq = sq;
    }

    public String getHolidayType() {
        return holidayType;
    }

    public void setHolidayType(String holidayType) {
        this.holidayType = holidayType;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public String getHolidays() {
        return holidays;
    }

    public void setHolidays(String holidays) {
        this.holidays = holidays;
    }

    public int getIsAdjust() {
        return isAdjust;
    }

    public void setIsAdjust(int isAdjust) {
        this.isAdjust = isAdjust;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastUpdTime() {
        return lastUpdTime;
    }

    public void setLastUpdTime(Date lastUpdTime) {
        this.lastUpdTime = lastUpdTime;
    }

    public String getLastUpdTranCode() {
        return lastUpdTranCode;
    }

    public void setLastUpdTranCode(String lastUpdTranCode) {
        this.lastUpdTranCode = lastUpdTranCode;
    }
}
